
package net.waste.ics.potion;

import net.minecraftforge.registries.ObjectHolder;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.event.RegistryEvent;

import net.minecraft.potion.Potion;
import net.minecraft.potion.Effects;
import net.minecraft.potion.EffectInstance;

@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD)
public class TfirePotion {
	@ObjectHolder("ics:tfire")
	public static final Potion potionType = null;

	@SubscribeEvent
	public static void registerPotion(RegistryEvent.Register<Potion> event) {
		event.getRegistry().register(new PotionCustom());
	}

	public static class PotionCustom extends Potion {
		public PotionCustom() {
			super(new EffectInstance(Effects.INSTANT_DAMAGE, 1200, 2, true, true), new EffectInstance(Effects.SLOWNESS, 1200, 8, true, true),
					new EffectInstance(Effects.HUNGER, 1200, 10, true, true));
			setRegistryName("tfire");
		}
	}
}
